package com.terrace.web.tagext.easyui.model;

import java.io.Serializable;

/**
 * 树模型
 * 
 * @author jiangyg
 *
 */
public class ComboTreeModel implements Serializable {

	private static final long serialVersionUID = 8196764881373786965L;
	
	/**
	 * Class
	 */
	private Class<?> cls;

	/**
	 * 主键字段
	 */
	private String idField;

	/**
	 * 树节点显示字段
	 */
	private String textField;

	/**
	 * 前面的小图标样式
	 */
	private String iconClsField;
	
	/**
	 * 子集字段
	 */
	private String childrenField;

	public ComboTreeModel() {
		super();
	}

	public ComboTreeModel(Class<?> cls, String idField, String textField) {
		this.cls = cls;
		this.idField = idField;
		this.textField = textField;
	}

	public ComboTreeModel(Class<?> cls, String idField, String textField, String childrenField) {
		this.cls = cls;
		this.idField = idField;
		this.textField = textField;
		this.childrenField = childrenField;
	}

	public Class<?> getCls() {
		return cls;
	}

	public void setCls(Class<?> cls) {
		this.cls = cls;
	}

	public String getIdField() {
		return idField;
	}

	public void setIdField(String idField) {
		this.idField = idField;
	}

	public String getTextField() {
		return textField;
	}

	public void setTextField(String textField) {
		this.textField = textField;
	}

	public String getIconClsField() {
		return iconClsField;
	}

	public void setIconClsField(String iconClsField) {
		this.iconClsField = iconClsField;
	}

	public String getChildrenField() {
		return childrenField;
	}

	public void setChildrenField(String childrenField) {
		this.childrenField = childrenField;
	}

}
